/****************************************************************
 *Author:       zxx
 *UnityVersion：2019.4.1f1
 *Date:         2020/08/01 13:46:53
 *Description:    
*****************************************************************/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SuccessPanel : MonoBehaviour {

    private void Awake()
    {
        EventCenter.AddListener(EventDefine.SuccessPanelShow, Show);
        gameObject.SetActive(false);
    }

    private void OnDestroy()
    {
        EventCenter.RemoveListener(EventDefine.SuccessPanelShow, Show);

    }

    private void Show()
    {
        gameObject.SetActive(true);
    }
}

